<extend name="Public:common"/>
<block name="css">
    <link rel="stylesheet" href="__STATIC__/Dealer/css/tabstyle.css"/>
    <link rel="stylesheet" href="__STATIC__/layui/css/layui.css"  media="all">
    <style>
        .type-item {
            background: #ccc;
            min-width: 100px;
            text-align: center;
            padding: 5px 10px;
        }
        .row{padding:5px;}
    </style>
</block>
<block name="content">
 <div class="page-header" style="background-color: #fff!important"><h1><i class="fa fa-home"></i> 首页 &gt;产品管理&gt;线路发布</h1></div>

    <ul id="nav" class="nav nav-tabs">
        <li role="presentation" class="active"><a href="javascript:void(0)">第一步基本信息</a></li>
        <li role="presentation" class=""><a href="javascript:void(0)">第二步价格计划</a></li>
        <li role="presentation" class=""><a href="javascript:void(0)">第三步行程安排</a></li>
        <li role="presentation" class=""><a href="javascript:void(0)">第四步签证添加</a></li>
        <li role="presentation" class=""><a href="javascript:void(0)">第五步附加产品</a></li>
        <li role="presentation" ><a href="javascript:void(0)">第六步销售渠道</a></li>
    </ul>

    <div class="tab-content">
        <div class="panelsd">
            <!-- 基本信息 -->
            <div class="paneld">
            <form class="myForm" method="post"  action='{:U("step1_action")}'>
                <input type="hidden" name="id" value="{:I('id')}">
                <div class="row row-div">
                    <div class="col-md-2"><p class="text-right"><font color='red'>*</font>线路名称：</p></div>
                    <div class="col-md-5">
                        <input class="form-input" placeholder="城市+某景点+交通方式+时间,最多50个字符" required="required"  type="text" name="line_name" id="line_name" maxlength="50" value="{$lineInfo['line_name']}" readonly>
                        <div class="explain">
                            <span>城市+某景点+交通方式+时间,最多50个字符</span>
                        </div>
                    </div>
                </div>
                <div class="row row-div">
                    <div class="col-md-2" ><p class="text-right"><font color='red'>*</font>团号：</p></div>
                    <div class="col-md-5">
                        <input class="form-input" placeholder="请输入团号"  required="required" type="text" name="group_num" id="group_num" maxlength="150" value="{$lineInfo['group_num']}" readonly/>
                    </div>
                </div>
                <div class="row row-div">
                    <div class="col-md-2" ><p class="text-right"><font color='red'>*</font>行程天数：</p></div>
                    <div class="col-md-5">
                        <input class="form-input" placeholder="请输入行程天数" required="required" type="tel" name="travel_days" id="group_num" maxlength="150"  value="{$lineInfo['travel_days']}" onkeyup="this.value=this.value.replace(/\D/gi,'')" onafterpaste="clearNoNum(this)"  readonly/>
                    </div>
                </div>
                <div class="row row-div">
                    <div class="col-md-2" ><p class="text-right"><font color='red'>*</font>出发城市：</p></div>
                    <div class="col-md-5">
                        <!-- <input type="text" name="group_num" id="group_num" maxlength="150"> -->
                        <select id='origin_id' name="" disabled  required>
                            <option value=''>请选择出发城市</option>
                            <volist name="areas_info" id="vo">
                                <option value="{$vo['areaId']}" <if condition="$vo['areaId'] == $lineInfo['origin_id']">selected="true"</if> >{$vo['areaName']}</option>
                            </volist>
                        </select>
                        <input type="hidden" name="origin_id" value="{$lineInfo['origin_id']}">
                    </div>

                </div>

                <div class="row row-div">
                    <div class="col-md-2" ><p class="text-right"><font color='red'>*</font>目的地城市：</p></div>
                    <input type="hidden" name="destination_id" id="destination_id" value="{$lineInfo.destination_id}">
                    <div class="col-md-5">
                        <input type="text" class="form-input" placeholder="点击选择目的地" onclick="return;choseDestinationCity()"  value="<volist name="destinationName" id="vo">{$vo.areaName},</volist>  " readonly id="destination" required>
                    </div>

                </div>

                <div class="row row-div">
                    <div class="col-md-2" ><p class="text-right"><font color='red'>*</font>线路主题：</p></div>
                    <div class="col-md-10">
                        <volist name="themes" id="vo">
                            <input class="form-radio" type='checkbox' width="30" class="theme" disabled id='theme_name{$vo.theme_id}' theme[]  <if condition="in_array($vo['theme_id'],$checkedTheme)">checked</if> value="{$vo['theme_id']}"/><span for="{theme_name{$vo.theme_id}}">{$vo['theme_name']}</span>
                        </volist>
                    </div>
                </div>
                <div class="row row-div">
                    <div class="col-md-2" ><p class="text-right"><font color='red'>*</font>预计收客人数：</p></div>
                    <div class="col-md-5">
                        <input class="form-input" required="required" placeholder="请填写预计收客人数"  type="tel" readonly name="guests_num" id="guests_num" maxlength="150" onkeyup="this.value=this.value.replace(/\D/gi,'')" value="{$lineInfo['guests_num']}" />
                    </div>
                </div>
                <div class="row row-div">
                    <div class="col-md-2" ><p class="text-right"><font color='red'>*</font>截止收团:</p></div>
                    <div class="col-md-5">
                       出团日期 <input type="tel"  required="required" name="till_day" id="till_day" readonly maxlength="150" onkeyup="this.value=this.value.replace(/\D/gi,'')"  value="{$lineInfo['till_day']}" />&nbsp;天前截止
                    </div>
                </div>
                <div class="row row-div">
                    <div class="col-md-2" ><p class="text-right"><font color='red'>*</font>预订时间:</p></div>
                    <div class="col-md-5">
                       出团日期 <input type="tel" required="required" name="book_day" readonly id="book_day" maxlength="150" onkeyup="this.value=this.value.replace(/\D/gi,'')" value="{$lineInfo['book_day']}" />&nbsp;天前开始预定
                    </div>
                </div>
                <div class="row row-div">
                    <div class="col-md-2" ><p class="text-right"><font color='red'>*</font>出团日期:</p></div>
                    <div class="col-md-2" >
                        是否天天出团:
                        <select is_everyday id="is_everyday" disabled>
                            <option value="1" <if condition="$lineInfo['is_everyday'] eq 1">selected</if> >是</option>
                            <option value="0" <if condition="$lineInfo['is_everyday'] eq 0">selected</if>>否</option>
                        </select>
                    </div>

                    <div class="col-md-8" >

                        <div id="group-section" style="display: <if condition="$lineInfo['is_everyday'] eq 1">block<else/>none</if>" >
                            <input type="text" start_time  readonly   class="form-control form-date left-float" id="_start_time" placeholder="开始日期" value="{$lineInfo['start_time']|default=time()|date="Y-m-d",###}">
                            <span class="left-float date-center">至</span>
                            <input type="text" end_time readonly class="form-control form-date left-float" id="_end_time" placeholder="结束日期" value="{$lineInfo['end_time']|default=time()|date="Y-m-d",###}">
                        </div>

                        <div id="group-day" style="display: <if condition="$lineInfo['is_everyday'] eq 0">block<else/>none</if>">
                            <span for="forum_time">出团日期:</span>
                            <input type="text" forum_time onclick="return;forumTime()" id="forum_time" value="{$lineInfo.forum_time}"  class="form-input" placeholder="点击选择日期" readonly />
                        </div>

                    </div>
                </div>
                <hr>
                <!--去的交通方式-->
                <if condition="$lineInfo['go_price_id'] && $lineInfo['go_traffic_custom'] eq '0'">
                        <!--已经存在的情况-->
                        <div class="row row-div">
                            <div class="col-md-2" ><p class="text-right"><font color='red'>*</font>往返交通(出发):</p></div>
                            <div class="col-md-10">
                                <p>
                                    *出发地:
                                    国家
                                    <select  id="go_country_id" disabled  onchange="getProvince(this,'go')" >
                                        <option value="">==选择国家==</option>
                                        <volist name="goTrafficCity.start_country" id="vo">
                                            <option <if condition="$goTraffic['start_country'] eq $vo['areaId']">selected</if> value="{$vo.areaId}">{$vo.areaName}</option>
                                        </volist>
                                    </select>
                                    省
                                    <select  id="go_province_id" disabled onchange="getCity(this,'go')" >
                                        <option value="">==选择省==</option>
                                        <volist name="goTrafficCity.start_province" id="vo">
                                            <option <if condition="$goTraffic['start_province'] eq $vo['areaId']">selected</if> value="{$vo.areaId}">{$vo.areaName}</option>
                                        </volist>
                                    </select>
                                    市
                                    <select id="go_city_id" disabled  onchange="getArea(this,'go')" >
                                        <option value="">==选择市==</option>
                                        <volist name="goTrafficCity.start_city" id="vo">
                                            <option <if condition="$goTraffic['start_city'] eq $vo['areaId']">selected</if> value="{$vo.areaId}">{$vo.areaName}</option>
                                        </volist>
                                    </select>
                                    区
                                    <select  disabled id="go_area_id" >
                                        <option value="">==选择区==</option>
                                        <volist name="goTrafficCity.start_area" id="vo">
                                            <option <if condition="$goTraffic['start_area'] eq $vo['areaId']">selected</if> value="{$vo.areaId}">{$vo.areaName}</option>
                                        </volist>
                                    </select>
                                </p>

                                <p>
                                    *目的地:
                                    国家
                                    <select  disabled id="go_end_country_id"  onchange="getProvince(this,'go_end')" >
                                        <option value="">==选择国家==</option>
                                        <volist name="goTrafficCity.goal_country" id="vo">
                                            <option <if condition="$goTraffic['goal_country'] eq $vo['areaId']">selected</if> value="{$vo.areaId}">{$vo.areaName}</option>
                                        </volist>
                                    </select>
                                    省
                                    <select disabled id="go_end_province_id"  onchange="getCity(this,'go_end')" >
                                        <option value="">==选择省==</option>
                                        <volist name="goTrafficCity.goal_province" id="vo">
                                            <option <if condition="$goTraffic['goal_province'] eq $vo['areaId']">selected</if> value="{$vo.areaId}">{$vo.areaName}</option>
                                        </volist>
                                    </select>
                                    市
                                    <select disabled id="go_end_city_id"  onchange="getArea(this,'go_end')" >
                                        <option value="">==选择市==</option>
                                        <volist name="goTrafficCity.goal_city" id="vo">
                                            <option <if condition="$goTraffic['goal_city'] eq $vo['areaId']">selected</if> value="{$vo.areaId}">{$vo.areaName}</option>
                                        </volist>
                                    </select>
                                    区
                                    <select disabled  id="go_end_area_id" >
                                        <option value="">==选择区==</option>
                                        <volist name="goTrafficCity.goal_area" id="vo">
                                            <option <if condition="$goTraffic['goal_area'] eq $vo['areaId']">selected</if> value="{$vo.areaId}">{$vo.areaName}</option>
                                        </volist>
                                    </select>
                                   <!-- <span class="btn btn-xs btn-primary" onclick="choseGoTraffic();">选择交通方式</span>-->
                                </p>
                                <if>
                                    <p class="text-primary"> 已选择出发交通方式:</p>
                                    <span class="label label-success" style=" <if condition="!$goTraffic">display: none;</if> " id="go_price_id_info" >
                                {$goTraffic.supplier_name}({$goTraffic.money_type})-{$goTraffic.traffic_name}|{$goTraffic.seat_name}-{$goTraffic.routes_name}-座位数{$goTraffic.seat_num}
                                </span>

                                <div id="go_upgrade_traffic_parent" <if condition="!$upgradeTrafficList">style="display: none;"</if> >
                                <h4><b class="text-primary">可升级选项:</b></h4>
                                <div  id="go_upgrade_traffic" >
                                    <volist name="upgradeTrafficList" id="vo">
                                        <if condition="$vo['type'] eq 1">
                                            <p>
                                                <span for="" class="text-warning">{$vo.seat_name} 儿童成本{$vo.origin_child_price} 成人成本{$vo.origin_adult_price}</span>
                                                销售成人价: <input type="text" value="{$vo.now_adult_price}" name="go_upgrade_save_traffic[{$vo.up_traffic_id}][now_adult_price]"  onkeyup="clearNoNum(this)"> &nbsp;&nbsp;
                                                销售儿童价: <input type="text" value="{$vo.now_child_price}" name="go_upgrade_save_traffic[{$vo.up_traffic_id}][now_child_price]"  onkeyup="clearNoNum(this)">
                                            </p>
                                        </if>
                                    </volist>

                                </div>
                            </div>

                                <input type="hidden" name="go_price_id" id="go_price_id" value="{$lineInfo.go_price_id}">
                                <!--<input type="text" class="form-input" id="go_price_id_info" placeholder="已选交通方式"  value="{$goTraffic.supplier_name}-{$goTraffic.traffic_name}-{$goTraffic.routes_name}-座位{$goTraffic.seat_num}-成人{$goTraffic.adult_actual_cost}-儿童{$goTraffic.child_actual_cost}" readonly/>-->
                                </p>
                            </div>
                        </div>
                    <else/>

                    <!--不存在交通方式的处理情况-->
                        <div class="row row-div">
                            <div class="col-md-2" ><p class="text-right"><font color='red'>*</font>往返交通(出发):</p></div>
                            <div class="col-md-10">
                                <p>
                                    *出发地:
                                    国家
                                    <select  id="go_country_id"  onchange="getProvince(this,'go')" >
                                        <option value="">==选择国家==</option>
                                        <volist name="country" id="vo">
                                            <option <if condition="$goTraffic['start_country'] eq $vo['areaId']">selected</if> value="{$vo.areaId}">{$vo.areaName}</option>
                                        </volist>
                                    </select>
                                    省
                                    <select  id="go_province_id"  onchange="getCity(this,'go')" >
                                        <option value="">==选择省==</option>
                                        <volist name="goTrafficCity.start_province" id="vo">
                                            <option <if condition="$goTraffic['start_province'] eq $vo['areaId']">selected</if> value="{$vo.areaId}">{$vo.areaName}</option>
                                        </volist>
                                    </select>
                                    市
                                    <select id="go_city_id"  onchange="getArea(this,'go')" >
                                        <option value="">==选择市==</option>
                                        <volist name="goTrafficCity.start_city" id="vo">
                                            <option <if condition="$goTraffic['start_city'] eq $vo['areaId']">selected</if> value="{$vo.areaId}">{$vo.areaName}</option>
                                        </volist>
                                    </select>
                                    区
                                    <select  id="go_area_id" >
                                        <option value="">==选择区==</option>
                                        <volist name="goTrafficCity.start_area" id="vo">
                                            <option <if condition="$goTraffic['start_area'] eq $vo['areaId']">selected</if> value="{$vo.areaId}">{$vo.areaName}</option>
                                        </volist>
                                    </select>
                                </p>

                                <p>
                                    *目的地:
                                    国家
                                    <select  id="go_end_country_id"  onchange="getProvince(this,'go_end')" >
                                        <option value="">==选择国家==</option>
                                        <volist name="country" id="vo">
                                            <option <if condition="$goTraffic['goal_country'] eq $vo['areaId']">selected</if> value="{$vo.areaId}">{$vo.areaName}</option>
                                        </volist>
                                    </select>
                                    省
                                    <select id="go_end_province_id"  onchange="getCity(this,'go_end')" >
                                        <option value="">==选择省==</option>
                                        <volist name="goTrafficCity.goal_province" id="vo">
                                            <option <if condition="$goTraffic['goal_province'] eq $vo['areaId']">selected</if> value="{$vo.areaId}">{$vo.areaName}</option>
                                        </volist>
                                    </select>
                                    市
                                    <select id="go_end_city_id"  onchange="getArea(this,'go_end')" >
                                        <option value="">==选择市==</option>
                                        <volist name="goTrafficCity.goal_city" id="vo">
                                            <option <if condition="$goTraffic['goal_city'] eq $vo['areaId']">selected</if> value="{$vo.areaId}">{$vo.areaName}</option>
                                        </volist>
                                    </select>
                                    区
                                    <select  id="go_end_area_id" >
                                        <option value="">==选择区==</option>
                                        <volist name="goTrafficCity.goal_area" id="vo">
                                            <option <if condition="$goTraffic['goal_area'] eq $vo['areaId']">selected</if> value="{$vo.areaId}">{$vo.areaName}</option>
                                        </volist>
                                    </select>
                                    <span class="btn btn-xs btn-primary" onclick="choseGoTraffic();">选择交通方式</span>
                                </p>
                                <if>
                                    <p class="text-primary"> 已选择出发交通方式:</p>
                                    <span class="label label-success" style=" <if condition="!$goTraffic">display: none;</if> " id="go_price_id_info" >
                                {$goTraffic.supplier_name}({$goTraffic.money_type})-{$goTraffic.traffic_name}|{$goTraffic.seat_name}-{$goTraffic.routes_name}-座位数{$goTraffic.seat_num}-成人价{$goTraffic.adult_actual_cost}-儿童价{$goTraffic.child_actual_cost}
                                </span>

                                <div id="go_upgrade_traffic_parent" <if condition="!$upgradeTrafficList">style="display: none;"</if> >
                                <h4><b class="text-primary">可升级选项:</b></h4>
                                <div  id="go_upgrade_traffic" >
                                    <volist name="upgradeTrafficList" id="vo">
                                        <if condition="$vo['type'] eq 1">
                                            <p>
                                                <span for="" class="text-warning">{$vo.seat_name} 儿童成本{$vo.origin_child_price} 成人成本{$vo.origin_adult_price}</span>
                                                销售成人价: <input type="text" value="{$vo.now_adult_price}" name="go_upgrade_traffic[{$vo.traffic_price_id}][now_adult_price]"  onkeyup="clearNoNum(this)"> &nbsp;&nbsp;
                                                销售儿童价: <input type="text" value="{$vo.now_child_price}" name="go_upgrade_traffic[{$vo.traffic_price_id}][now_child_price]"  onkeyup="clearNoNum(this)">
                                            </p>
                                        </if>
                                    </volist>
                                </div>
                            </div>

                            <input type="hidden" name="go_price_id" id="go_price_id" value="{$lineInfo.go_price_id}">
                            <!--<input type="text" class="form-input" id="go_price_id_info" placeholder="已选交通方式"  value="{$goTraffic.supplier_name}-{$goTraffic.traffic_name}-{$goTraffic.routes_name}-座位{$goTraffic.seat_num}-成人{$goTraffic.adult_actual_cost}-儿童{$goTraffic.child_actual_cost}" readonly/>-->
                            </p>

                        </div>
                        </div>

                </if>

                <!--去的交通方式结束-->


                <!--回来的交通方式-->
                <if condition="$lineInfo['back_traffic_custom'] eq '0' && $lineInfo['back_price_id'] ">
                    <!--供应有提供的回来线路的情总处理-->
                    <div class="row row-div">
                        <div class="col-md-2" ><p class="text-right"><font color='red'>*</font>往返交通(回来):</p></div>
                        <div class="col-md-10">
                            <p>
                                *出发地:
                                国家
                                <select disabled  id="back_country_id"  onchange="getProvince(this,'back')" >
                                    <option value="">==选择国家==</option>
                                    <volist name="backTrafficCity.start_country" id="vo">
                                        <option <if condition="$backTraffic['start_country'] eq $vo['areaId']">selected</if> value="{$vo.areaId}">{$vo.areaName}</option>
                                    </volist>
                                </select>
                                省
                                <select disabled  id="back_province_id"  onchange="getCity(this,'back')" >
                                    <option value="">==选择省==</option>
                                    <volist name="backTrafficCity.start_province" id="vo">
                                        <option <if condition="$backTraffic['start_province'] eq $vo['areaId']">selected</if> value="{$vo.areaId}">{$vo.areaName}</option>
                                    </volist>
                                </select>
                                市
                                <select disabled id="back_city_id"  onchange="getArea(this,'back')" >
                                    <option value="">==选择市==</option>
                                    <volist name="backTrafficCity.start_city" id="vo">
                                        <option <if condition="$backTraffic['start_city'] eq $vo['areaId']">selected</if> value="{$vo.areaId}">{$vo.areaName}</option>
                                    </volist>
                                </select>
                                区
                                <select  disabled id="back_area_id" >
                                    <option value="">==选择区==</option>
                                    <volist name="backTrafficCity.start_area" id="vo">
                                        <option <if condition="$backTraffic['start_area'] eq $vo['areaId']">selected</if> value="{$vo.areaId}">{$vo.areaName}</option>
                                    </volist>
                                </select>
                            </p>

                            <p>
                                *目的地:
                                国家
                                <select  disabled id="back_end_country_id"  onchange="getProvince(this,'back_end')" >
                                    <option value="">==选择国家==</option>
                                    <volist name="backTrafficCity.goal_country" id="vo">
                                        <option <if condition="$backTraffic['goal_country'] eq $vo['areaId']">selected</if> value="{$vo.areaId}">{$vo.areaName}</option>
                                    </volist>
                                </select>
                                省
                                <select disabled id="back_end_province_id"  onchange="getCity(this,'back_end')" >
                                    <option value="">==选择省==</option>
                                    <volist name="backTrafficCity.goal_province" id="vo">
                                        <option <if condition="$backTraffic['goal_province'] eq $vo['areaId']">selected</if> value="{$vo.areaId}">{$vo.areaName}</option>
                                    </volist>
                                </select>
                                市
                                <select disabled id="back_end_city_id"  onchange="getArea(this,'back_end')" >
                                    <option value="">==选择市==</option>
                                    <volist name="backTrafficCity.goal_city" id="vo">
                                        <option <if condition="$backTraffic['goal_city'] eq $vo['areaId']">selected</if> value="{$vo.areaId}">{$vo.areaName}</option>
                                    </volist>
                                </select>
                                区
                                <select disabled id="back_end_area_id" >
                                    <option value="">==选择区==</option>
                                    <volist name="backTrafficCity.goal_area" id="vo">
                                        <option <if condition="$backTraffic['goal_area'] eq $vo['areaId']">selected</if> value="{$vo.areaId}">{$vo.areaName}</option>
                                    </volist>
                                </select>
                                <!--<span class="btn btn-xs btn-primary" onclick="choseBackTraffic();">选择交通方式</span>-->
                            </p>
                            <p>
                            <p class="text-primary">已选择回来的交通方式:</p>
                            <span class="label label-success" style="<if condition="!$backTraffic">display: none;</if>" id="back_price_id_info" >
                            {$backTraffic.supplier_name}({$backTraffic.money_type})-{$backTraffic.traffic_name}|{$backTraffic.seat_name}-{$backTraffic.routes_name}-座位数{$backTraffic.seat_num}<!-- -成人价{$backTraffic.adult_actual_cost}-儿童价{$backTraffic.child_actual_cost}-->
                            </span>

                            <div id="back_upgrade_traffic_parent" <if condition="!$upgradeTrafficList">style="display: none;"</if>>
                            <h4><b class="text-primary">可升级选项:</b></h4>
                            <div  id="back_upgrade_traffic" >
                                <volist name="upgradeTrafficList" id="vo">
                                    <if condition="$vo['type'] eq 2">
                                        <p>
                                            <span for="" class="text-warning">{$vo.seat_name} 儿童成本{$vo.origin_child_price} 成人成本{$vo.origin_adult_price}</span>
                                            销售成人价: <input type="text" value="{$vo.now_adult_price}" name="back_upgrade_save_traffic[{$vo.up_traffic_id}][now_adult_price]"  onkeyup="clearNoNum(this)"> &nbsp;&nbsp;
                                            销售儿童价: <input type="text" value="{$vo.now_child_price}" name="back_upgrade_save_traffic[{$vo.up_traffic_id}][now_child_price]"  onkeyup="clearNoNum(this)">
                                        </p>
                                    </if>
                                </volist>
                            </div>
                            </div>

                            <input type="hidden" name="back_price_id" id="back_price_id" value="{$lineInfo.back_price_id}">

                            <!--<input type="text" class="form-input" id="back_price_id_info" placeholder="已选交通方式" value="{$backTraffic.supplier_name}-{$backTraffic.traffic_name}-{$backTraffic.routes_name}-座位{$backTraffic.seat_num}-成人{$backTraffic.adult_actual_cost}-儿童{$backTraffic.child_actual_cost}" readonly/>-->
                            </p>

                            </div>
                            </div>
                    <else/>
                    <!--运营拼装的线路处理-->
                        <div class="row row-div">
                            <div class="col-md-2" ><p class="text-right"><font color='red'>*</font>往返交通(回来):</p></div>
                            <div class="col-md-10">
                                <p>
                                    *出发地:
                                    国家
                                    <select  id="back_country_id"  onchange="getProvince(this,'back')" >
                                        <option value="">==选择国家==</option>
                                        <volist name="country" id="vo">
                                            <option <if condition="$backTraffic['start_country'] eq $vo['areaId']">selected</if> value="{$vo.areaId}">{$vo.areaName}</option>
                                        </volist>
                                    </select>
                                    省
                                    <select  id="back_province_id"  onchange="getCity(this,'back')" >
                                        <option value="">==选择省==</option>
                                        <volist name="backTrafficCity.start_province" id="vo">
                                            <option <if condition="$backTraffic['start_province'] eq $vo['areaId']">selected</if> value="{$vo.areaId}">{$vo.areaName}</option>
                                        </volist>
                                    </select>
                                    市
                                    <select id="back_city_id"  onchange="getArea(this,'back')" >
                                        <option value="">==选择市==</option>
                                        <volist name="backTrafficCity.start_city" id="vo">
                                            <option <if condition="$backTraffic['start_city'] eq $vo['areaId']">selected</if> value="{$vo.areaId}">{$vo.areaName}</option>
                                        </volist>
                                    </select>
                                    区
                                    <select  id="back_area_id" >
                                        <option value="">==选择区==</option>
                                        <volist name="backTrafficCity.start_area" id="vo">
                                            <option <if condition="$backTraffic['start_area'] eq $vo['areaId']">selected</if> value="{$vo.areaId}">{$vo.areaName}</option>
                                        </volist>
                                    </select>
                                </p>

                                <p>
                                    *目的地:
                                    国家
                                    <select  id="back_end_country_id"  onchange="getProvince(this,'back_end')" >
                                        <option value="">==选择国家==</option>
                                        <volist name="country" id="vo">
                                            <option <if condition="$backTraffic['goal_country'] eq $vo['areaId']">selected</if> value="{$vo.areaId}">{$vo.areaName}</option>
                                        </volist>
                                    </select>
                                    省
                                    <select id="back_end_province_id"  onchange="getCity(this,'back_end')" >
                                        <option value="">==选择省==</option>
                                        <volist name="backTrafficCity.goal_province" id="vo">
                                            <option <if condition="$backTraffic['goal_province'] eq $vo['areaId']">selected</if> value="{$vo.areaId}">{$vo.areaName}</option>
                                        </volist>
                                    </select>
                                    市
                                    <select id="back_end_city_id"  onchange="getArea(this,'back_end')" >
                                        <option value="">==选择市==</option>
                                        <volist name="backTrafficCity.goal_city" id="vo">
                                            <option <if condition="$backTraffic['goal_city'] eq $vo['areaId']">selected</if> value="{$vo.areaId}">{$vo.areaName}</option>
                                        </volist>
                                    </select>
                                    区
                                    <select  id="back_end_area_id" >
                                        <option value="">==选择区==</option>
                                        <volist name="backTrafficCity.goal_area" id="vo">
                                            <option <if condition="$backTraffic['goal_area'] eq $vo['areaId']">selected</if> value="{$vo.areaId}">{$vo.areaName}</option>
                                        </volist>
                                    </select>
                                    <span class="btn btn-xs btn-primary" onclick="choseBackTraffic();">选择交通方式</span>
                                </p>
                                <p>
                                <p class="text-primary">已选择回来的交通方式:</p>
                                <span class="label label-success" style="<if condition="!$backTraffic">display: none;</if>" id="back_price_id_info" >
                                {$backTraffic.supplier_name}({$backTraffic.money_type})-{$backTraffic.traffic_name}|{$backTraffic.seat_name}-{$backTraffic.routes_name}-座位数{$backTraffic.seat_num}-成人价{$backTraffic.adult_actual_cost}-儿童价{$backTraffic.child_actual_cost}
                                </span>

                                <div id="back_upgrade_traffic_parent" <if condition="!$upgradeTrafficList">style="display: none;"</if>>
                                <h4><b class="text-primary">可升级选项:</b></h4>
                                <div  id="back_upgrade_traffic" >
                                    <volist name="upgradeTrafficList" id="vo">
                                        <if condition="$vo['type'] eq 2">
                                            <p>
                                                <span for="" class="text-warning">{$vo.seat_name} 儿童成本{$vo.origin_child_price} 成人成本{$vo.origin_adult_price}</span>
                                                销售成人价: <input type="text" value="{$vo.now_adult_price}" name="back_upgrade_traffic[{$vo.traffic_price_id}][now_adult_price]"  onkeyup="clearNoNum(this)"> &nbsp;&nbsp;
                                                销售儿童价: <input type="text" value="{$vo.now_child_price}" name="back_upgrade_traffic[{$vo.traffic_price_id}][now_child_price]"  onkeyup="clearNoNum(this)">
                                            </p>
                                        </if>
                                    </volist>
                                </div>
                            </div>


                            <input type="hidden" name="back_price_id" id="back_price_id" value="{$lineInfo.back_price_id}">


                            <!--<input type="text" class="form-input" id="back_price_id_info" placeholder="已选交通方式" value="{$backTraffic.supplier_name}-{$backTraffic.traffic_name}-{$backTraffic.routes_name}-座位{$backTraffic.seat_num}-成人{$backTraffic.adult_actual_cost}-儿童{$backTraffic.child_actual_cost}" readonly/>-->
                            </p>

                        </div>
                        </div>
                </if>



                <!--回来的交通方式结束-->

        <hr>

                <!--选择酒店-->
                <if condition="$lineInfo['room_custom'] eq '0'">
                    <!--供应商有提供酒店的情况-->
                    <div class="row row-div">
                        <div class="col-md-2" >
                            <p class="text-right"><font color='red'>*</font>酒店选择:</p>
                        </div>
                        <div class="col-md-10">
                            <p>
                                *所在地:
                                国家
                                <select  disabled id="hotel_country_id"  onchange="getProvince(this,'hotel')" >
                                    <option value="">==选择国家==</option>
                                    <volist name="hotelCity.country" id="vo">
                                        <option <if condition="$checkedHotel[0]['country'] eq $vo['areaId']">selected</if> value="{$vo.areaId}">{$vo.areaName}</option>
                                    </volist>
                                </select>
                                省
                                <select disabled  id="hotel_province_id"  onchange="getCity(this,'hotel')" >
                                    <option value="">==选择省==</option>
                                    <volist name="hotelCity.province" id="vo">
                                        <option <if condition="$checkedHotel[0]['province'] eq $vo['areaId']">selected</if> value="{$vo.areaId}">{$vo.areaName}</option>
                                    </volist>
                                </select>
                                市
                                <select disabled id="hotel_city_id"  onchange="getArea(this,'hotel')" >
                                    <option value="">==选择市==</option>
                                    <volist name="hotelCity.city" id="vo">
                                        <option <if condition="$checkedHotel[0]['city'] eq $vo['areaId']">selected</if> value="{$vo.areaId}">{$vo.areaName}</option>
                                    </volist>
                                </select>
                                区
                                <select  disabled id="hotel_area_id" >
                                    <option value="">==选择区==</option>
                                    <volist name="hotelCity.area" id="vo">
                                        <option <if condition="$checkedHotel[0]['area'] eq $vo['areaId']">selected</if> value="{$vo.areaId}">{$vo.areaName}</option>
                                    </volist>
                                </select>
                               <!-- <span class="btn btn-xs btn-primary" onclick="choseHotel()">添加酒店</span>-->
                            </p>

                            <input type="hidden" value="{$lineInfo.room_price_id}" id="room_price_id" name="room_price_id" >
                            <p id="room_price_id_name">
                                已选择的酒店:
                                <volist name="checkedHotel" id="vo">
                                    <span  class="label label-success _room_price_id" data-id="{$vo.room_priceId}">{$vo.supplier_name}({$vo.money_type})-{$vo.room_name}-{$vo.star_level}星级-房间数{$vo.room_count}<!-- -成人价{$vo.adult_actual_cost}-儿童价{$vo.child_actual_cost}[删除]--></span>
                                </volist>
                                <!-- <span  class="label label-success room_price_id" data-id="1">天河酒店[删除]</span>
                                 <span  class="label label-success room_price_id" data-id="1">天河酒店[删除]</span>-->
                            </p>
                        </div>
                    </div>

                    <!--给运营商的价格-->
                    <div class="row row-div">
                        <div class="col-md-2" ><p class="text-right"><font color='red'>*</font>酒店打包价格：</p></div>
                        <div class="col-md-5">
                            <span class="text-warning">供应商打包过来的价格:{$originLineInfo.hotel_price}</span>
                            <br>
                            <span class="text-primary">给销售的价格:</span>
                            <input class="form-input" required="required" placeholder="酒店打包给销售的价格"  type="tel" name="hotel_price" id="hotel_price" maxlength="50" onkeyup='clearNoNum(this)' value="{$lineInfo['hotel_price']}" />{$supplierInfo['currency']}
                        </div>
                    </div>

                    <!--酒店可选升级服务-->
                    <div class="row row-div">
                        <div class="col-md-2" >
                            <p class="text-right"><font color='red'>*</font>酒店升级收费: </p>
                        </div>
                        <div class="col-md-10">
                          <!--  <span class="btn btn-xs btn-primary" onclick="upgradeHotel()">添加可升级服务酒店</span>-->
                            <div id="upgradeHotelList">
                                <volist name="upgradeHotel" id="vo">
                                    <div class="row">
                                    <span >
                                        <span class="text-warning">{$vo.supplier_name}({$vo.origin_money_type})-{$vo.room_name}-{$vo.star_level}星级-成本价{$vo.to_operator_price}<!-- -成人价{$vo.adult_actual_cost}-儿童价{$vo.child_actual_cost}-->-房间数{$vo.room_count}:</span>
                                        <input type="text" placeholder="请输入金额!" name="upgrade_save[{$vo.up_hotel_id}][to_reseller_price]" value="{$vo.to_reseller_price}"   onkeyup="clearNoNum(this)" onafterpaste="clearNoNum(this)" required>
                                    </span>
                                       <!-- <span class="btn btn-xs btn-primary delUpgradeHotel">删除</span>-->
                                    </div>
                                </volist>
                            </div>
                        </div>
                    </div>
                    <else/>
                    <!--运营商自己拼的酒店-->
                    <div class="row row-div">
                        <div class="col-md-2" ><p class="text-right"><font color='red'>*</font>酒店选择:</p></div>
                        <div class="col-md-10">
                            <p>
                                *所在地:
                                国家
                                <select  id="hotel_country_id"  onchange="getProvince(this,'hotel')" >
                                    <option value="">==选择国家==</option>
                                    <volist name="country" id="vo">
                                        <option <if condition="$checkedHotel[0]['country'] eq $vo['areaId']">selected</if> value="{$vo.areaId}">{$vo.areaName}</option>
                                    </volist>
                                </select>
                                省
                                <select  id="hotel_province_id"  onchange="getCity(this,'hotel')" >
                                    <option value="">==选择省==</option>
                                    <volist name="hotelCity.province" id="vo">
                                        <option <if condition="$checkedHotel[0]['province'] eq $vo['areaId']">selected</if> value="{$vo.areaId}">{$vo.areaName}</option>
                                    </volist>
                                </select>
                                市
                                <select id="hotel_city_id"  onchange="getArea(this,'hotel')" >
                                    <option value="">==选择市==</option>
                                    <volist name="hotelCity.city" id="vo">
                                        <option <if condition="$checkedHotel[0]['city'] eq $vo['areaId']">selected</if> value="{$vo.areaId}">{$vo.areaName}</option>
                                    </volist>
                                </select>
                                区
                                <select  id="hotel_area_id" >
                                    <option value="">==选择区==</option>
                                    <volist name="hotelCity.area" id="vo">
                                        <option <if condition="$checkedHotel[0]['area'] eq $vo['areaId']">selected</if> value="{$vo.areaId}">{$vo.areaName}</option>
                                    </volist>
                                </select>
                                <span class="btn btn-xs btn-primary" onclick="choseHotel()">添加酒店</span>
                            </p>

                            <input type="hidden" value="{$lineInfo.room_price_id}" id="room_price_id" name="room_price_id" >
                            <p id="room_price_id_name">
                                已选择的酒店:
                                <volist name="checkedHotel" id="vo">
                                    <span  class="label label-success room_price_id" data-id="{$vo.room_priceId}">{$vo.supplier_name}({$vo.money_type})-{$vo.room_name}-{$vo.star_level}星级-房间数{$vo.room_count}-成人价{$vo.adult_actual_cost}-儿童价{$vo.child_actual_cost}[删除]</span>
                                </volist>

                                <!-- <span  class="label label-success room_price_id" data-id="1">天河酒店[删除]</span>
                                 <span  class="label label-success room_price_id" data-id="1">天河酒店[删除]</span>-->
                            </p>
                        </div>
                    </div>

                    <!--给运营商的价格-->
                    <div class="row row-div">
                        <div class="col-md-2" ><p class="text-right"><font color='red'>*</font>酒店打包价格：</p></div>
                        <div class="col-md-5">
                            <input class="form-input" required="required" placeholder="酒店打包给销售的价格"  type="tel" name="hotel_price" id="hotel_price" maxlength="50" onkeyup='clearNoNum(this)' value="{$lineInfo['hotel_price']}" />{$supplierInfo['currency']}
                        </div>
                    </div>

                    <!--酒店可选升级服务-->
                    <div class="row row-div">
                        <div class="col-md-2" >
                            <p class="text-right"><font color='red'>*</font>酒店升级收费: </p>
                        </div>
                        <div class="col-md-10">
                            <span class="btn btn-xs btn-primary" onclick="upgradeHotel()">添加可升级服务酒店</span>
                            <div id="upgradeHotelList">
                                <volist name="upgradeHotel" id="vo">
                                    <div class="row">
                                    <span >
                                        <span class="text-warning">{$vo.supplier_name}({$vo.now_money_type})-{$vo.room_name}-{$vo.star_level}星级-成人价{$vo.adult_actual_cost}-儿童价{$vo.child_actual_cost}-房间数{$vo.room_count}:</span>
                                        <input type="text" placeholder="请输入金额!" name="upgrade[{$vo.room_price_id}][to_reseller_price]" value="{$vo.to_reseller_price}"   onkeyup="clearNoNum(this)" onafterpaste="clearNoNum(this)" required>
                                    </span>
                                        <span class="btn btn-xs btn-primary delUpgradeHotel">删除</span>
                                    </div>
                                </volist>
                            </div>
                        </div>
                    </div>
                </if>


                 <hr>
                <!--选择景区-->

                <if condition="$lineInfo['scenic_custom'] eq '0'">
                    <!--供应商有提供此产品-->
                    <div class="row row-div">
                        <div class="col-md-2" ><p class="text-right"><font color='red'>*</font>景区选择:</p></div>
                        <div class="col-md-10">
                            <p>
                                *所在地:
                                国家
                                <select  disabled id="scenic_country_id"  onchange="getProvince(this,'scenic')" >
                                    <option value="">==选择国家==</option>
                                    <volist name="scenicCity.country" id="vo">
                                        <option <if condition="$checkedScenic[0]['country'] eq $vo['areaId']">selected</if> value="{$vo.areaId}">{$vo.areaName}</option>
                                    </volist>
                                </select>
                                省
                                <select  disabled id="scenic_province_id"  onchange="getCity(this,'scenic')" >
                                    <option value="">==选择省==</option>
                                    <volist name="scenicCity.province" id="vo">
                                        <option <if condition="$checkedScenic[0]['province'] eq $vo['areaId']">selected</if> value="{$vo.areaId}">{$vo.areaName}</option>
                                    </volist>
                                </select>
                                市
                                <select disabled id="scenic_city_id"  onchange="getArea(this,'scenic')" >
                                    <option value="">==选择市==</option>
                                    <volist name="scenicCity.city" id="vo">
                                        <option <if condition="$checkedScenic[0]['city'] eq $vo['areaId']">selected</if> value="{$vo.areaId}">{$vo.areaName}</option>
                                    </volist>
                                </select>
                                区
                                <select  disabled id="scenic_area_id" >
                                    <option value="">==选择区==</option>
                                    <volist name="scenicCity.area" id="vo">
                                        <option <if condition="$checkedScenic[0]['area'] eq $vo['areaId']">selected</if> value="{$vo.areaId}">{$vo.areaName}</option>
                                    </volist>
                                </select>
                                <!--<span class="btn btn-xs btn-primary" onclick="choseScenic()">添加景区</span>-->
                            </p>

                            <input type="hidden" value="{$lineInfo.scenic_price_id}" id="scenic_price_id" name="scenic_price_id">
                            <p id="scenic_price_id_name">
                                已选择的景区:
                                <volist name="checkedScenic" id="vo">
                                    <span  class="label label-success _scenic_price_id" data-id="{$vo.scenic_priceId}">{$vo.supplier_name}({$vo.money_type})-{$vo.scenic_name}-{$vo.scenic_level}A级<!-- -成人价{$vo.adult_actual_cost}-儿童价{$vo.child_actual_cost}[删除]--></span>
                                </volist>
                                <!-- <span  class="label label-success scenic_price_id" data-id="1">镜花缘[删除]</span>
                                 <span  class="label label-success scenic_price_id" data-id="1">万绿湖[删除]</span>-->
                            </p>
                        </div>
                    </div>
                    <else/>
                    <!--运营商自己拼的景区-->
                    <div class="row row-div">
                        <div class="col-md-2" ><p class="text-right"><font color='red'>*</font>景区选择:</p></div>
                        <div class="col-md-10">
                            <p>
                                *所在地:
                                国家
                                <select   id="scenic_country_id"  onchange="getProvince(this,'scenic')" >
                                    <option value="">==选择国家==</option>
                                    <volist name="country" id="vo">
                                        <option <if condition="$checkedScenic[0]['country'] eq $vo['areaId']">selected</if> value="{$vo.areaId}">{$vo.areaName}</option>
                                    </volist>
                                </select>
                                省
                                <select  id="scenic_province_id"  onchange="getCity(this,'scenic')" >
                                    <option value="">==选择省==</option>
                                    <volist name="scenicCity.province" id="vo">
                                        <option <if condition="$checkedScenic[0]['province'] eq $vo['areaId']">selected</if> value="{$vo.areaId}">{$vo.areaName}</option>
                                    </volist>
                                </select>
                                市
                                <select id="scenic_city_id"  onchange="getArea(this,'scenic')" >
                                    <option value="">==选择市==</option>
                                    <volist name="scenicCity.city" id="vo">
                                        <option <if condition="$checkedScenic[0]['city'] eq $vo['areaId']">selected</if> value="{$vo.areaId}">{$vo.areaName}</option>
                                    </volist>
                                </select>
                                区
                                <select  id="scenic_area_id" >
                                    <option value="">==选择区==</option>
                                    <volist name="scenicCity.area" id="vo">
                                        <option <if condition="$checkedScenic[0]['area'] eq $vo['areaId']">selected</if> value="{$vo.areaId}">{$vo.areaName}</option>
                                    </volist>
                                </select>
                                <span class="btn btn-xs btn-primary" onclick="choseScenic()">添加景区</span>
                            </p>

                            <input type="hidden" value="{$lineInfo.scenic_price_id}" id="scenic_price_id" name="scenic_price_id">
                            <p id="scenic_price_id_name">
                                已选择的景区:
                                <volist name="checkedScenic" id="vo">
                                    <span  class="label label-success scenic_price_id" data-id="{$vo.scenic_priceId}">{$vo.supplier_name}({$vo.money_type})-{$vo.scenic_name}-{$vo.scenic_level}A级-成人价{$vo.adult_actual_cost}-儿童价{$vo.child_actual_cost}[删除]</span>
                                </volist>
                                <!-- <span  class="label label-success scenic_price_id" data-id="1">镜花缘[删除]</span>
                                 <span  class="label label-success scenic_price_id" data-id="1">万绿湖[删除]</span>-->
                            </p>
                        </div>
                    </div>
                </if>


                <!--景区选择结束-->
            <hr>
                <!--选择保险-->

                <if condition="$lineInfo['insure_custom'] eq '0'">
                    <!--供应商有提供保险的情况-->
                    <div class="row row-div">
                        <div class="col-md-2" ><p class="text-right"><font color='red'>*</font>可选保险列表:</p></div>
                        <div class="col-md-10">
                            <span class="btn btn-xs btn-primary" onclick="choseInsure()">添加保险</span>
                            <input type="hidden" value="{$lineInfo.insure_price_id}" id="insure_price_id" name="insure_price_id">
                            <p class="text-primary"> 已选择的保险:</p>
                            <p id="insure_price_id_name">
                                <volist name="checkedInsure" id="vo">
                                    <p>
                                        <span  class="text-warning " data-id="{$vo.insure_priceId}">{$vo.supplier_name}({$vo.money_type})-{$vo.insure_name}-成人价{$vo['origin_adult_price']}-儿童价{$vo['origin_child_price']}</span>
                                        <span class="text-info">销售成人价</span>:<input type="text" name="insure_save[{$vo.up_insure_id}][now_adult_price]" value="{$vo.now_adult_price}"  onkeyup="clearNoNum(this)" onafterpaste="clearNoNum(this)">
                                        &nbsp; &nbsp;<span class="text-info">销售儿童价</span>:<input type="text" name="insure_save[{$vo.up_insure_id}][now_child_price]" value="{$vo.now_child_price}"  onkeyup="clearNoNum(this)" onafterpaste="clearNoNum(this)"><!-- <span  class="text-warning insure_price_id" data-id="{$vo.insure_priceId}">[删除]</span>-->
                                    </p>
                                 </volist>
                            </p>
                        </div>
                    </div>
                    <else/>
                    <!--运营商自己拼的保险-->
                    <div class="row row-div">
                        <div class="col-md-2" ><p class="text-right"><font color='red'>*</font>可选保险列表:</p></div>
                        <div class="col-md-10">
                            <span class="btn btn-xs btn-primary" onclick="choseInsure()">添加保险</span>
                            <input type="hidden" value="{$lineInfo.insure_price_id}" id="insure_price_id" name="insure_price_id">
                            <p class="text-primary"> 已选择的保险:</p>
                            <p id="insure_price_id_name">
                                <volist name="checkedInsure" id="vo">
                            <p>
                                <span  class="text-warning " data-id="{$vo.insure_priceId}">{$vo.supplier_name}({$vo.money_type})-{$vo.insure_name}-成人价{$vo.adult_actual_cost}-儿童价{$vo.child_actual_cost}</span>
                                <span class="text-info">销售成人价</span>:<input type="text" name="insure[{$vo.insure_priceId}][now_adult_price]" value="{$vo.now_adult_price}"  onkeyup="clearNoNum(this)" onafterpaste="clearNoNum(this)">
                                &nbsp; &nbsp;<span class="text-info">销售儿童价</span>:<input type="text" name="insure[{$vo.insure_priceId}][now_child_price]" value="{$vo.now_child_price}"  onkeyup="clearNoNum(this)" onafterpaste="clearNoNum(this)"> <span  class="text-warning insure_price_id" data-id="{$vo.insure_priceId}">[删除]</span>
                            </p>
                            </volist>
                            </p>
                        </div>
                    </div>
                </if>


                <!--保险选择结束-->
                <div class="row text-center">
                    <input type="submit"  name="" class="btn btn-warning" value="保存 进入下一步" />
                    <a class="btn btn-info" href="{:U('form_step2',array('id'=>I('id')))}">跳过</a>
                </div>
                </form>
            </div>
        </div>
    </div>
</block>
<block name="js">
    <!-- 表单提交前验证 -->
    <script type="text/javascript" src="__STATIC__/layer/layer.js"></script>
    <script src="__STATIC__/layui/layui.all.js"></script>
    <script src="__STATIC__/layui/layui.js"></script>
    <script src="__STATIC__/Operator/js/line.js"></script>
</block>

